package com.njtoyo.taxi.admin.rest.wrapper.local_service.merchant;

import com.njtoyo.taxi.admin.library.common.GeoPoint;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class PickupLocationSetUpAddWrapper {

    @ApiModelProperty(value = "自提点名称")
    private String name;

    @ApiModelProperty(value = "地址")
    @NotNull(message = "地址不能为空")
    private String address;

    @ApiModelProperty(value = "地址经纬度")
    private GeoPoint addressPoint;

    @ApiModelProperty(value = "联系人")
    @NotNull(message = "联系人不能为空")
    private String contactPerson;

    @ApiModelProperty(value = "联系人电话")
    @NotNull(message = "手机号码不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号码格式不准确")
    private String contactPhone;

    @ApiModelProperty(value = "营业开始时间")
    private String openingTimestamp;

    @ApiModelProperty(value = "营业结束时间")
    private String closeTimestamp;

    @ApiModelProperty(value = "提货延迟天数")
    private Integer pickupDelayDay;

}
